//
import Vue from "vue";
import API from "../requestApi/taskApi";
import { get, post, postUrlencoded } from "../requestApi/request";
const task = {
  // 新建任务
  gettaskinsert: function gettaskinsert(params) {
    return post(API.taskinsert, params);
  },
  // 任务删除
  gettaskdelete: function gettaskdelete(params) {
    return postUrlencoded(API.taskdelete, params);
  },
  // 任务详情
  gettaskinfo: function gettaskinfo(params) {
    let ip = `${API.taskinfo}?${params}`;
    return get(ip);
  },
  // 任务列表
  gettasklist: function gettasklist(params) {
    let ip = `${API.tasklist}?${params}`;
    return get(ip);
  },
  // 任务审核
  gettaskupdateapproval: function gettaskupdateapproval(params) {
    return postUrlencoded(API.taskupdateapproval, params);
  }
};
export default task;
